package com.glsc.ngateway.common.base.domainmapper;

import com.glsc.ngateway.common.base.domain.mysql.gateway.platform.flow.FlowFormEquipmentModifyCloudDeviceDetail;
import com.glsc.ngateway.common.api.flowable.dto.task.formData.equipment.domainDto.FlowFormEquipmentModifyCloudDeviceDetailDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author: xuchang
 * @Desc: domin到dto转换
 */
@Mapper(componentModel = "spring")
public interface FlowFormEquipmentModifyCloudDeviceDetailMapper {

    FlowFormEquipmentModifyCloudDeviceDetailMapper INSTANCE = Mappers.getMapper(FlowFormEquipmentModifyCloudDeviceDetailMapper.class);

    FlowFormEquipmentModifyCloudDeviceDetailDto domain2dto(FlowFormEquipmentModifyCloudDeviceDetail domain);


    List<FlowFormEquipmentModifyCloudDeviceDetailDto> domain2dto(List<FlowFormEquipmentModifyCloudDeviceDetail> domain);

    @Mapping(target = "insertTime", ignore = true)
    @Mapping(target = "updateTime", ignore = true)
    @Mapping(target = "deleted", ignore = true)
    FlowFormEquipmentModifyCloudDeviceDetail dto2domain(FlowFormEquipmentModifyCloudDeviceDetailDto dto);

    List<FlowFormEquipmentModifyCloudDeviceDetail> dto2domain(List<FlowFormEquipmentModifyCloudDeviceDetailDto> dto);
}
